/*
 * Copyright 2009 Prime Technology.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.primefaces.examples.domain;

import java.io.Serializable;
import java.util.Date;

public class DroppedFile implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -617788375933051383L;
	private String txId;
	private String senderEmail;
	private String recipientEmail;
	private String fileName;
	private String downloadUrl;
	private String size;
	private Date expiryDate;
	private Date sentDate;
	private String type;
	private String status;

    public DroppedFile() {
	}
	
	


	@Override
	public boolean equals(Object obj) {
		if(obj == null)
			return false;
		
		if(!(obj instanceof DroppedFile))
			return false;
		
		DroppedFile compare = (DroppedFile) obj;
	
		return compare.txId.equals(this.txId) && compare.fileName.equals(this.fileName);
	}

	@Override
	public int hashCode() {
		int hash = 1;
		
	    return hash * 31 + txId.hashCode() + fileName.hashCode();
	}

    @Override
    public String toString() {
        return "Car{" + "txId=" + txId + ", fileName=" + fileName + '}';
    }




	public String getTxId() {
		return txId;
	}




	public void setTxId(String txId) {
		this.txId = txId;
	}




	public String getFileName() {
		return fileName;
	}




	public void setFileName(String fileName) {
		this.fileName = fileName;
	}




	public String getDownloadUrl() {
		return downloadUrl;
	}




	public void setDownloadUrl(String downloadUrl) {
		this.downloadUrl = downloadUrl;
	}




	public String getSize() {
		return size;
	}




	public void setSize(String size) {
		this.size = size;
	}




	public Date getExpiryDate() {
		return expiryDate;
	}




	public void setExpiryDate(Date expiryDate) {
		this.expiryDate = expiryDate;
	}




	public Date getSentDate() {
		return sentDate;
	}




	public void setSentDate(Date sentDate) {
		this.sentDate = sentDate;
	}




	public String getType() {
		return type;
	}




	public void setType(String type) {
		this.type = type;
	}




	public String getStatus() {
		return status;
	}




	public void setStatus(String status) {
		this.status = status;
	}




	public void setSenderEmail(String senderEmail) {
		this.senderEmail = senderEmail;
	}




	public String getSenderEmail() {
		return senderEmail;
	}




	public void setRecipientEmail(String recipientEmail) {
		this.recipientEmail = recipientEmail;
	}




	public String getRecipientEmail() {
		return recipientEmail;
	}
}
